const mysql = require('mysql');

let fn = function (sql, callback, datasb) {
  const conn = mysql.createPool({
    host: 'localhost',
    user: 'animal',
    password: 'animal',
    database: 'animal',
  });
  conn.query(sql, datasb, callback);
};

module.exports = fn;
